<?php

\think\Route::domain('www',[
    '/' =>'index/index/index',//首页
	'/search' =>'index/index/search',//搜索
	'/searchajax' =>'index/index/searchAjax',//搜索Ajax
	'/books' =>'index/books/all',//书库
	'/top' =>'index/books/toplist',//排行榜
	'/topinfo' =>'index/books/topinfo',//排行榜
	'/top/getrankdata' =>'index/books/getrankdata',//排行榜月周数据
	'/featured' =>'index/books/featured',//小说精选
    '/new' =>'index/books/featured',//小说精选	
	
	'/wechatverify'=> 'index/pay/wechatverify',//微信验证
	'/register'          => 'index/login/registerindex',
	'/xieyi'          => 'index/login/xieyi',
    '/logout'         => 'index/login/logout',
	'/test/index'         => 'index/test/index',

	
   'book/info'  => 'index/books/index',//书籍信息
   'book/allajax'  => 'index/books/allajax',//书库加载更多
   'book/bookshelf'  => 'index/books/bookshelf',//书架列表
   'book/delhistory'  => 'index/books/delhistory',//删除阅读记录
   
   'book/bookcase'  => 'index/books/bookcase',//加入书架
   'book/bookbonus'  => 'index/books/bookbonus',//打赏
   'book/ajaxbonus'  => 'index/books/ajaxbonus',//打赏详情页
   'book/commit'  => 'index/books/commit',//书籍评论
   'book/commitgood'  => 'index/books/commitgood',//评论点赞
   'book/getcomment'  => 'index/books/getcomment',//json获取评论回复框
   'book/replies'  => 'index/books/replies',//评论回复		   
   'book/chapter/ajaxchapter'  => 'index/chapter/ajaxchapter',//章节列表
   'book/chapter/:id'  => 'index/chapter/index',//章节列表
   'book/focus'  => 'index/books/focus',//强关页面
	
	//章节相关
	
	'chapter/read/:bookid/:chapterid' =>'index/chapter/read',//章节详情
	'chapter/focus'  => 'index/chapter/focus', //强制关注
	'chapter/signreply'  => 'index/chapter/signreply', //签到回复
	
	//用户中心
	'personal/recharge'  => 'index/pay/index',
	'personal/info'  => 'index/user/index',	   
	'personal/history'  => 'index/user/history', //阅读历史
	'personal/bookcase'  => 'index/user/bookcase',//书架
	'personal/paylog'  => 'index/user/paylog',//充值记录
	'personal/ajaxpaylog'  => 'index/user/ajaxpaylog',//更多充值记录
	'personal/moneylog'  => 'index/user/moneylog',//书币明细
	'personal/review'  => 'index/user/review',//我的评论
	'personal/replies'  => 'index/user/replies',//我的回复
	'personal/repliesfrom'  => 'index/user/repliesfrom',//回复我的
	'personal/bonuslog'  => 'index/user/bonuslog',//打赏明细
	'personal/checknickname'  => 'index/user/checknickname',//检测昵称
	'/personal/checkphone'  => 'index/user/checkphone',//检测电话
	
	//支付相关
	
	'pay/index'  => 'index/pay/index', //充值页面
	'pay/pay'  => 'index/pay/pay', //支付页面
	'pay/payqr'  => 'index/pay/payqr', //二维码支付页面
	'pay/payalipayqr'  => 'index/pay/payalipayqr', //第四方支付生成支付宝二维码
	'pay/notify'   => 'index/pay/notify', //支付回调
	'pay/qrcode'  => 'index/pay/qrcode', //生成二维码
	'pay/checkorder'  => 'index/pay/checkorder', //生成二维码
	'pay/sandpay'  => 'index/pay/sandpay', //杉德支付  支付宝二维码支付

	
	//支付宝支付
    '/alipay/pay'             => 'index/alipay/pay',
    '/alipay/gateway'         => 'index/alipay/gateway',
    '/alipay/wxpay'             => 'index/alipay/wxpay',
	'/alipay/jump'             => 'index/alipay/jump',//跳转

    
	//登录相关
	
	'login/login'  => 'index/login/login', //快捷登录回调函数
	'login/getcode'  => 'index/login/getCode', //获取短信验证码
	'login/register'  => 'index/login/registerindex',//注册UI页面
	'login/reg'  => 'index/login/reg',//注册POST
	'login/backpasw'  => 'index/login/backpasw',
	'login/wxqr'  => 'index/login/wxqr', //微信二维码
	'login/callback'  => 'index/login/callback', //跳转URL
	'login/autocallback'  => 'index/login/autocallback', //微信授权登录跳转URL
	'login/'  => 'index/login/index', //快捷登录
    
	//推广相关
	'referrals/index/:id'  => 'novel/referrals/index',//推广页面
	'referrals/indexs/:id'  => 'novel/referrals/indexs',//推广页面

    //测试用
    'testreferrals/index/:id'  => 'novel/testreferrals/index',//推广页面
    'testreferrals/indexs/:id'  => 'novel/testreferrals/indexs',//推广页面
    

	//新闻
	'news/list'  => 'index/news/lists',
	'news/detail/:id'  => 'index/news/detail',
	'news/getPointList/:category'  => 'index/news/getPointList',

	//首页男频推荐
	'getRankingList'  => 'index/index/getRankingList',
	

	

	//微信第三方平台相关
	'/mpcallback/jumptoauth' => 'novel/wxopen/jumptoauth',//跳转授权
	'/mpcallback/event' => 'novel/wxopen/oauth',//授权事件接收url
	'/mpcallback/msg' => 'novel/wxopen/msg',//消息与事件接收url
	'/mpcallback/login' => 'novel/wxopen/login',//授权URL
	'/mpcallback/callback' => 'novel/wxopen/callback',//授权回调URL
	'/mpcallback/test' => 'novel/wxopen/test',
	
]);


\think\Route::domain('writes',[
	'/'  => 'writer/index/index',
]);

//\think\Route::domain('admin.lveshu.com','admin');

\think\Route::domain('staff',[
	//'/adminlogin' => 'admin/index/login',
	'/' => 'admin/index/index',
]);

\think\Route::domain('oss',[
	//'/adminlogin' => 'admin/index/login',
	'/' => 'oss/index/index',
]);

//番茄接口站以及番茄巨量回传
\think\Route::domain('tomato',[
    '/' => 'tomato/index/index',
    '/buying' => 'tomato/index/buying', //买入
    '/adddesktop' => 'tomato/index/adddesktop', //加桌
    '/pay' => 'tomato/index/pay', //买入
    '/active' => 'tomato/index/active', //加桌
]);

//测试用
\think\Route::domain('staff',[
    '/' => 'admin/index/index',
]);

//本地调试
\think\Route::domain('testadmin',[
    '/' => 'admin/index/index',
]);

\think\Route::domain('pay',[
	'personal/recharge'  => 'novel/pay/index',
	'pay/index'    => 'novel/pay/index', //支付页面
	'pay/pay'    => 'novel/pay/pay', //支付过程
	'pay/wxh5pay'    => 'novel/pay/wxh5pay', //微信H5支付过程
	'pay/notify' => 'novel/pay/notify', //支付回调
	'pay/thirdpay'    => 'novel/pay/thirdpay', //米花支付
	'pay/thirdpaytest'    => 'novel/pay/thirdpaytest', //米花支付
	'pay/thirdalipay'    => 'novel/pay/thirdalipay', //米花支付 H5支付宝支付
	'pay/thirdnotify'    => 'novel/pay/thirdnotify', // 米花支付后通知消息
	'pay/sandpay'   => 'novel/pay/sandpay',     //杉德支付 微信内支付
	'pay/sandalipay'   => 'novel/pay/sandalipay',     //杉德支付 非微信 支付宝支付
	'pay/thirdsandnotify'   => 'novel/pay/thirdsandnotify',     //杉德支付回调
	
	//支付宝支付
    '/alipay/pay'             => 'index/alipay/pay',
    '/alipay/gateway'         => 'index/alipay/gateway',
    '/alipay/wxpay'             => 'index/alipay/wxpay',	//微信内支付
	'/alipay/jump'             => 'index/alipay/jump',//跳转

	'/wechatverify'  => 'novel/pay/wechatverify',//微信验证
    //测试用2022年10月22日
    'testpay/index'    => 'novel/testpay/index', //支付页面
    'testpay/pay'    => 'novel/testpay/pay', //支付过程
    'testpay/thirdpay'    => 'novel/testpay/thirdpay', //支付过程
]);

\think\Route::domain('wxapi',[
	//微信接入
	'wechat/api' => 'novel/wechatapi/index',
]);

\think\Route::domain('m',[
    '/' =>'novel/index/index',//首页
	'/test' =>'novel/Login/test2',//首页
	'/search' =>'novel/index/search',//搜索
	'/searchajax' =>'novel/index/searchAjax',//搜索Ajax
	'/preferential' =>'novel/activity/index',	//平台优惠活动
	'/diypreferential/:activityid' =>'novel/activity/diy',	//平台优惠活动
	'/category' =>'novel/index/category',	//模板二 分类
	'/free' =>'novel/index/free',	//模板二 限免专区
	'/fullflag' =>'novel/index/fullflag',//模板二完本  模板三完本
	'/books' =>'novel/books/all',//书库
	'/top' =>'novel/books/toplist',//排行榜
	'/featured' =>'novel/books/featured',//小说精选
    '/new' =>'novel/books/featured',//小说精选
	'/focushistory'=> 'novel/referrals/history',//关注以后阅读历史
	
	'/wechatverify'=> 'novel/pay/wechatverify',//微信验证
	

	
	'book/info'  => 'novel/books/index',//书籍信息
	'book/allajax'  => 'novel/books/allajax',//书库加载更多
	'book/bookcase'  => 'novel/books/bookcase',//加入书架
	'book/bookbonus'  => 'novel/books/bookbonus',//打赏
	'book/ajaxbonus'  => 'novel/books/ajaxbonus',//打赏详情页
	'book/commit'  => 'novel/books/commit',//书籍评论
	'book/commitgood'  => 'novel/books/commitgood',//评论点赞
	'book/replies'  => 'novel/books/replies',//评论回复		   
	'book/chapter/ajaxchapter'  => 'novel/chapter/ajaxchapter',//章节列表
	'book/chapter/:id'  => 'novel/chapter/index',//章节列表
	'book/focus'  => 'novel/books/focus',//强关页面
	
	
	
	//小说章节相关
	'chapter/read/:bookid/:chapterid' =>'novel/chapter/read',//章节详情
	'chapter/batchbuy' =>'novel/chapter/batchbuy',//章节批量购买
	'chapter/focus'  => 'novel/chapter/focus', //强制关注
	'chapter/signreply'  => 'novel/chapter/signreply', //签到回复
	
	//小说章节生成图片
	//'test' =>'novel/images/test',//章节详情
	'images/images' =>'novel/images/images',//章节详情
	'images/infoimages'  => 'novel/images/infoimages', //简介
	'images/textimage'  => 'novel/images/textimage', //标题
	
	//推广相关
	'referrals/index/:id'  =>  'novel/referrals/index',//推广页面
	//'referrals/indexs/:id'  => 'novel/referrals/indexs',//推广页面
	
	'/getcode'=>'novel/referrals/getcode',//获取用户CODE
	'/getpaycode'=>'novel/referrals/getpaycode',//支付CODE

    '/testgetpaycode'=>'novel/testreferrals/getpaycode',//支付CODE
	
	//登录相关
	'login/login'  => 'novel/login/login', //快捷登录回调函数
	'login/callback'  => 'novel/login/callback', //快捷登录回调函数
	'login/qrcode'  => 'novel/login/qrcode', //二维码登录
	'login/getcode'  => 'index/login/getcode', //获取短信验证码]
	'login/forget'  => 'novel/login/forget', //忘记密码
	'login/phone'  => 'novel/login/phone', //手机登录
	'login/'  => 'novel/login/index', //快捷登录
	'logout'         =>'novel/login/logout',//退出
	'register'          => 'novel/login/registerindex',
	'xieyi'          => 'novel/login/xieyi',
	
	//用户中心
	'personal/info'  => 'novel/user/index',	   
	'personal/history'  => 'novel/user/history', //阅读历史
	'personal/bookcase'  => 'novel/user/bookcase',//书架
	'personal/paylog'  => 'novel/user/paylog',//充值记录
	'personal/payzb'  => 'novel/user/payzb',//赠币记录
	'personal/ajaxpaylog'  => 'novel/user/ajaxpaylog',//更多充值记录
	'personal/moneylog'  => 'novel/user/moneylog',//书币明细
	'personal/bindmobile'  => 'novel/user/bindmobile',//绑定手机
	'personal/jubao'  => 'novel/chapter/jubao',//章节举报
	'personal/signin'  => 'novel/user/signin',//签到
	'personal/question'  => 'novel/user/question',//常见问题
	'personal/kefu'  => 'novel/user/kefu',//客服信息


	//支付相关
	'pay/index'  => 'novel/pay/index', //充值页面
	'/wechatverify'  => 'novel/pay/wechatverify',//微信验证
	//'/adminlogin/' => 'admin/index/login', //后台访问
	'kefu/index'  => 'novel/kefu/index', //客服页面

    'pay/test'  => 'novel/pay/test',//测试
    //测试部分
    'testchapter/read/:bookid/:chapterid' =>'novel/testchapter/read',//章节详情测试
    'testpay/index'  => 'novel/testpay/index', //充值页面

]);

\think\Route::domain('from',[	
	'track/[:md5]'		=>'novel/track/index', //落地页测试
	'track/ua'			=>'novel/track/ua', //落地页ua
	'track/useruafrom'  =>'novel/track/useruafrom',//抖音数据回传
	'track/from'		=> 'novel/track/from', //微博数据回传
	'track/goods'		=> 'novel/track/goods', //腾讯商品库
]);


//渠道
\think\Route::domain('*',[
    '/' =>'novel/index/index',//首页
	'/search' =>'novel/index/search',//搜索
	'/searchajax' =>'novel/index/searchAjax',//搜索Ajax
	'/preferential' =>'novel/activity/index',	//平台优惠活动
	'/diypreferential/:activityid' =>'novel/activity/diy',	//平台优惠活动
	'/category' =>'novel/index/category',	//模板二 分类
	'/free' =>'novel/index/free',	//模板二 限免专区
	'/fullflag' =>'novel/index/fullflag',//模板二 完本
	'/books' =>'novel/books/all',//书库
	'/top' =>'novel/books/toplist',//排行榜
	'/featured' =>'novel/books/featured',//小说精选
    '/new' =>'novel/books/featured',//小说精选
	'/focushistory'=> 'novel/referrals/history',//关注以后阅读历史
	
	'/wechatverify'=> 'novel/pay/wechatverify',//微信验证
	
	'book/info'  => 'novel/books/index',//书籍信息
	'book/allajax'  => 'novel/books/allajax',//书库加载更多
	'book/bookcase'  => 'novel/books/bookcase',//加入书架
	'book/bookbonus'  => 'novel/books/bookbonus',//打赏
	'book/ajaxbonus'  => 'novel/books/ajaxbonus',//打赏详情页
	'book/commit'  => 'novel/books/commit',//书籍评论
	'book/commitgood'  => 'novel/books/commitgood',//评论点赞
	'book/replies'  => 'novel/books/replies',//评论回复		   
	'book/chapter/ajaxchapter'  => 'novel/chapter/ajaxchapter',//章节列表
	'book/chapter/:id/[:orderby]'  => 'novel/chapter/index',//章节列表
	'book/focus'  => 'novel/books/focus',//强关页面
	
	//小说章节相关
	'chapter/read/:bookid/:chapterid' =>'novel/chapter/read',//章节详情
	'chapter/batchbuy' =>'novel/chapter/batchbuy',//章节批量购买
	'chapter/focus'  => 'novel/chapter/focus', //强制关注
	'chapter/signreply'  => 'novel/chapter/signreply', //签到回复
	
	//小说章节生成图片
	'test' =>'novel/images/test',//章节详情
	'images/images' =>'novel/images/images',//章节详情
	'images/infoimages'  => 'novel/images/infoimages', //简介
	'images/textimage'  => 'novel/images/textimage', //标题
	
	//推广相关
	'referrals/index/:id'  =>  'novel/referrals/index',//推广页面
	//'referrals/indexs/:id'  => 'novel/referrals/indexs',//推广页面
    'testreferrals/index/:id'  =>  'novel/testreferrals/index',//推广页面测试
    'testchapter/read/:bookid/:chapterid' =>'novel/testchapter/read',//章节详情测试
    'testindex' =>'novel/testindex/index',//首页测试
	
	'/getcode'=>'novel/referrals/getcode',//获取用户CODE
	'/getpaycode'=>'novel/referrals/getpaycode',//支付CODE
	
	//登录相关
	'login/login'  => 'novel/login/login', //快捷登录回调函数
	'login/callback'  => 'novel/login/callback', //快捷登录回调函数
	'login/qrcode'  => 'novel/login/qrcode', //二维码登录
	'login/getcode'  => 'index/login/getcode', //获取短信验证码]
	'login/forget'  => 'novel/login/forget', //忘记密码
	'login/phone'  => 'novel/login/phone', //手机登录
	'login/'  => 'novel/login/index', //快捷登录
	'logout'         =>'novel/login/logout',//退出
	'register'          => 'novel/login/registerindex',
	'xieyi'          => 'novel/login/xieyi',
	
	//用户中心
	'personal/info'  => 'novel/user/index',	   
	'personal/history'  => 'novel/user/history', //阅读历史
	'personal/bookcase'  => 'novel/user/bookcase',//书架
	'personal/paylog'  => 'novel/user/paylog',//充值记录
	'personal/payzb'  => 'novel/user/payzb',//赠币记录
	'personal/ajaxpaylog'  => 'novel/user/ajaxpaylog',//更多充值记录
	'personal/moneylog'  => 'novel/user/moneylog',//书币明细
	'personal/bindmobile'  => 'novel/user/bindmobile',//绑定手机
	'personal/jubao'  => 'novel/chapter/jubao',//章节举报
	'personal/signin'  => 'novel/user/signin',//签到
	'personal/question'  => 'novel/user/question',//常见问题
	'personal/kefu'  => 'novel/user/kefu',//客服信息
	
	//支付相关
	'pay/index'  => 'novel/pay/index', //充值页面  
	'pay/test'  => 'novel/pay/test',//测试

    //测试部分
    'testpay/index'  => 'novel/testpay/index', //充值页面


	'/wechatverify'  => 'novel/pay/wechatverify',//微信验证
	
	'kefu/index'  => 'novel/kefu/index', //客服页面


]);